# 需要开启这个参数，https://github.com/jemalloc/jemalloc/issues/1328
MONGO_HOME=${DEFAULT_MONGO_HOME:-'/opt/software/mongo'}
echo $MONGO_HOME
mkdir -p ${MONGO_HOME}/data/configdb
mkdir -p ${MONGO_HOME}/data/db

docker stop mongo && docker rm mongo
docker run -itd -p 27017:27017 --name mongo -v ${MONGO_HOME}/data/configdb:/data/configdb -v ${MONGO_HOME}/data/db:/data/db \
  registry.cn-hangzhou.aliyuncs.com/mrzhou1553/mongo:4.4.29




docker run --rm -it -p 27017:27017 --name mongo-rm \
  registry.cn-hangzhou.aliyuncs.com/mrzhou1553/mongo:4.4.29